/*AyflEomXWyqCHfdTxzWda+bKRNxqoRhrf02Huevr4hQ=*/
import { createPage, cacheTools } from 'nc-lightapp-front';
import React, { Component } from 'react';
import SecondCalculation from '../../../public/components/pubSecCalculation';
import Linkagiotage from '../../../public/components/pubSecCalculation/linkagiotage';
let scene;

class SumPage extends Component {
	constructor(props) {
		super(props);
		scene = props.getUrlParam('scene');
		this.state = {};
	}
	render() {
		//处理错误中心联查场景
		if (scene == 'linksce') {
			cacheTools.set('checkedData', [{
				scence: 'errorCenterLink',
				pk_bill: this.props.getUrlParam('id'),
				billType: 'DUAP'
			}]);
			//共用会计平台联查场景即可
			scene = 'fip';
		}
		return (
			<div>
				{scene == 'fip' ? (
					<Linkagiotage title={'yfhdsyjl'} />
				) : (
					<SecondCalculation
						sfbz={'Yf'}
						isCustomer={false}
						jumpPath={'/arap/payablebill/agiotage/calculation/index.html'}
						pagecode={'20080EPL_LIST'}
						appcode={'20080EPL'}
						isBack={this.props.getSearchParam('c').indexOf('EPL')==-1?false:true}
						title={'yfhdsyjl'}
					/>
				)}
			</div>
		);
	}
}

SumPage = createPage({})(SumPage);

ReactDOM.render(<SumPage />, document.querySelector('#app'));

/*AyflEomXWyqCHfdTxzWda+bKRNxqoRhrf02Huevr4hQ=*/